CLI | Run Mobile Tests
DevAssure CLI enables users to configure mobile environments and execute mobile test suites efficiently via the command line.
Running mobile tests using the DevAssure CLI involves two primary steps:
Step 1: Setup the Mobile Environment
Before executing any mobile tests, set up the required mobile SDKs and dependencies. This step ensures your testing environment has all necessary components.
./DA
--auth-token eyJhbGciOiJIUzI1NiJ9.eyJjdXN0b21fdG9rZW4iOiJlZjQ3NInVzZXJfaWQiOjY2fQ \
--source '/Users/youruser/Project/' \
--target '/Users/youruser/' \
setup-mobile \
--action setup \
--os android \
--dependencies android:34:35
Parameter | Mandatory | Format / Example | Description |
---|---|---|---|
--auth-token | Yes | <YOUR_DEVASSURE_TOKEN> | Your authentication token for DevAssure. This is crucial for all CLI operations. Replace the example token with your actual token, which can be generated from web app . |
--source | Yes | '/Users/youruser/myproject/' | Specifies the base path of your project where DevAssure will look for test files. |
--target | Yes | '/Users/youruser/output/' | Defines the output directory where DevAssure will generate logs, reports, and other results. |
--action | Yes | setup | Use setup to initialize required dependencies for the mobile testing environment. |
--os | Yes | android , ios , or all | Specifies the platform(s) to configure for mobile testing. |
--dependencies | Yes | android:34:35 | Defines the required SDK versions to install for the selected platform(s). Format: <platform>:<sdk_ver1>:<sdk_ver2>:... |
The above example command installs both Android SDK 34 and Android SDK 35 during the setup process.
Multiple Versions: You can specify multiple SDK versions by separating them with colons (:).
Platform Support: Currently, only Android is supported for SDK versioning using the --dependencies parameter.
Required Android SDK Version: One or more Android SDK version must be specified for Android automation (e.g., 30, 31, 34, 35).
SDK Version | Android OS Version |
---|---|
30 | Android 11 |
31 | Android 12 |
32 | Android 12L |
33 | Android 13 |
34 | Android 14 |
35 | Android 15 (Preview) |